<? $chat_input_field = '<textarea type="text" class="chat-input" placeholder="say hello"></textarea>'; ?>
<? if(!empty($action['listener']['LISTENER'])) : ?>
<? if(is_array($action['listener']['LISTENER'])) :?>
<? foreach($action['listener']['LISTENER'] as $l) : ?>
<i class="fa fa-user<? if($l->HOSTNAME==$_SERVER['REMOTE_ADDR']):?> me<? endif; ?>" data-uid="<?= $l->UID; ?>"><? if($l->HOSTNAME==$_SERVER['REMOTE_ADDR']): ?><? $chat_input_field; ?><? endif;?></i>
<? endforeach; ?>
<? else :?>
<i class="fa fa-user<? if($action['listener']['LISTENER']->HOSTNAME==$_SERVER['REMOTE_ADDR']):?> me<? endif; ?>" data-uid="<?= $action['listener']['LISTENER']->UID; ?>"></i>
<? endif;?>
<? endif;?>
